﻿/*CREATE TRIGGER [dbo].[Agentes_DeletionTrigger] 
    ON [Agentes] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Agentes_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AgenteGuid] = [Agentes_Tombstone].[AgenteGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Agentes_Tombstone] 
    ([AgenteGuid], DeletionDate)
    SELECT [AgenteGuid], GETUTCDATE()
    FROM deleted 
END*/